home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’95 / NetFractal™ / Fractal 8 source / InPoint.h < prev    next >
Encoding:
Text File  |  1995-06-24  |  642 b   |  41 lines  |  [TEXT/MPCC]

  1. // InPoint.h
  2.  
  3.  
  4. #include "NetPoint.h"
  5.  
  6. #include <OpenTptInternet.h>
  7.  
  8. struct packetBuffer {
  9.     long    mScanSectionID;
  10.     char    mScanBuffer[1200];
  11. };
  12.  
  13.  
  14. class InPoint : public NetPoint {
  15.  
  16.     
  17. protected:
  18.     union {
  19.         InetAddress    inet;
  20.     }            fHisAddress;
  21.     long        fHisAddressSize;
  22.  
  23.     packetBuffer        fPacket;
  24.  
  25.  
  26. public:
  27.  
  28.                             InPoint(
  29.                                 const char *protocol,
  30.                                 const char *address,
  31.                                 short port);
  32.     virtual                    ~InPoint();
  33.  
  34.     
  35. protected:
  36.     static pascal void        Notifier(void* contextPtr, OTEventCode code, 
  37.                                            OTResult result, void* cookie);
  38.     void                     HandleNotify(OTEventCode code, OTResult result, void* cookie);
  39.     void                    GetData();
  40.  
  41. };